package uk.co.douglashoskins.weathercompare.services;

import javax.microedition.location.Location;
import javax.microedition.location.LocationException;
import javax.microedition.location.LocationProvider;

import com.nokia.mid.location.LocationUtil;

public class NokiaLocationService {
	public static LocationProvider getLocationProvider() throws SecurityException, LocationException {
		int[] methods = { Location.MTA_UNASSISTED | Location.MTE_CELLID | Location.MTY_TERMINALBASED, Location.MTA_ASSISTED | Location.MTE_CELLID | Location.MTE_SHORTRANGE | Location.MTY_NETWORKBASED};
		return LocationUtil.getLocationProvider(methods, null);
	}
}
